# Makefile for the management of goods.
# programmer's name: Harry Wei.
# Time & Place: 2011, 3, 28, @ linux lab in xiyou.

CC		= gcc
CFLAGS		= -pipe -O2 -Wall -o
OBJ		= -c
SOURCES		= mm.c mmf.c
OBJECTS		= mm.o mmf.o
TARGET		= mm
DEL_FILE	= rm -f

all: Makefile $(TARGET)
$(TARGET):$(OBJECTS)
	$(CC) $^ $(CFLAGS) $@
$(OBJECTS):$(SOURCES)
	$(CC) $(OBJ) $^

clean:
	$(DEL_FILE) $(OBJECTS)
